Skip to content

Change double quotes to single quotes #5815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 9, 2017
Merged

Change double quotes to single quotes #5815

merged 2 commits into from
Jan 9, 2017

Conversation

roncapat
Copy link
Contributor

@roncapat roncapat commented Jan 6, 2017

Observe that "." is a string literal, and so is treated as the char '.' plus the null char '\0'. Single quotes reduces the necessary memory for this literal to only one char instead.
A string literal as the one actually present may require the use of the method "write(const char *str)", so there could be also a performance overhead.
Another reason to change quotes style is for consistency with line 235.

Signed-off-by: Patrick Roncagliolo [email protected]

- "." is a string literal, and so is treated as the char '.' plus the null char '\0'.
- Single quotes reduces the necessary memory for this literal to only one char instead.
  A string literal as the one actually present may require the use of the
  method "write(const char *str)", so there could be also a performance overhead.
- Another reason to change quotes style is for consistency with line 235.

Signed-off-by: Patrick Roncagliolo <[email protected]>
@roncapat
Copy link
Contributor Author

roncapat commented Jan 7, 2017

My commits now appear after @matthijskooijman's and @NicoHood's approvals because I signed-off them only this evening, and so the original hashes have changed. Sorry for the inconvenient. Feel free to double-check content, no variations were made from original commits.

@NicoHood
Copy link
Contributor

NicoHood commented Jan 8, 2017

@roncapat What do you mean by signed off? They are not GPG signed or at least if they are you miss-configured github.

@matthijskooijman
Copy link
Collaborator

@NicoHood, he added Signed-off-by headers.
@roncapat, for this repo we are not currently requiring or actively using signed-off-by headers, though they won't hurt of course.

@facchinm
Copy link
Member

facchinm commented Jan 9, 2017

First two patches looks really good, while I'd avoid merging the GSM related patch (maybe opening another PR on https://github.com/arduino-libraries/GSM is more appropriate)

@roncapat
Copy link
Contributor Author

roncapat commented Jan 9, 2017 via email

@facchinm
Copy link
Member

facchinm commented Jan 9, 2017

Simply force pushing on the same branch after removing the GSM related patch is ok IMO

@roncapat
Copy link
Contributor Author

roncapat commented Jan 9, 2017

Done. Here are only the patches for core library.

@facchinm facchinm merged commit b77957e into arduino:master Jan 9, 2017
@facchinm
Copy link
Member

facchinm commented Jan 9, 2017

Merged, thanks!

ollie1400 pushed a commit to ollie1400/Arduino that referenced this pull request May 2, 2022
Change double quotes to single quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants